<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
        var a = [1,2,3,4,5];
        console.log(a.length+" "+a);
        var b = a;
        b.splice(1,1);
        console.log(a.length+" "+a);
    </script>
</body>
</html>